package pub.util;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * 通过SessionInterceptor拦截器初始化
 * 获取request，response，session的工具
 * @author Administrator
 *
 */
public class ServletActionUtil {
	private static HttpServletRequest request;
	private static HttpServletResponse response;
	private static HttpSession session;
	public static HttpServletRequest getRequest() {
		return request;
	}
	public static void setRequest(HttpServletRequest request) {
		ServletActionUtil.request = request;
	}
	public static HttpServletResponse getResponse() {
		return response;
	}
	public static void setResponse(HttpServletResponse response) {
		ServletActionUtil.response = response;
	}
	public static HttpSession getSession() {
		return session;
	}
	public static void setSession(HttpSession session) {
		ServletActionUtil.session = session;
	}
}
